import fetch from '@/utils/fetch'

export function getPolicyList(query) {
  return fetch({
    url: '/api/guarantee/list',
    method: 'post',
    data: query
  })
}

export function addPolicyList(query) {
  return fetch({
    url: '/api/guarantee',
    method: 'post',
    data: query
  })
}

export function editPolicyList(query) {
  return fetch({
    url: '/api/guarantee/update',
    method: 'put',
    data: query
  })
}

export function delPolicyList(id) {
  return fetch({
    url: `/api/guarantee/delete/${id}`,
    method: 'delete'
  })
}
